//
//  ZSButtonTag.m
//  Fangxiaov
//
//  Created by safiri on 2017/3/3.
//  Copyright © 2017年 com.f. All rights reserved.
//

#import "ZSButtonTag.h"

static const CGFloat DefaultFontSize = 15.0;

@interface ZSButtonTag ()

@end

@implementation ZSButtonTag

- (instancetype)init
{
    self = [super init];
    if (self) {
        _fontSize = DefaultFontSize;
        _textColor = [UIColor darkTextColor];
        _nrmBgImageColor = [UIColor whiteColor];
        _enable = YES;
        _adjustsFont = YES;
        _autoDarkNrmBgColorForHighlighted = YES;
        _textAlignment = NSTextAlignmentCenter;
    }
    return self;
}

- (instancetype)initWithText: (NSString *)text {
    self = [self init];
    if (self) {
        _text = text;
    }
    return self;
}

+ (instancetype)tagWithText:(NSString *)text {
    return [[self alloc] initWithText:text];
}
- (nonnull instancetype)initWithSameTag:(nonnull ZSButtonTag *)sameTag {
    self = [self init];
    if (self) {
        _text = sameTag.text;
        _attributedText = sameTag.attributedText;
        _textColor = sameTag.textColor;
        _highlightedTextColor = sameTag.highlightedTextColor;
        _slcTextColor = sameTag.slcTextColor;
        _bgColor = sameTag.bgColor;
        _bgImage = sameTag.bgImage;
        _nrmBgImageColor = sameTag.nrmBgImageColor;
        _slcBgImageColor = sameTag.slcBgImageColor;
        _highlightedBgImageColor = sameTag.highlightedBgImageColor;
        _borderCornerRadius = sameTag.borderCornerRadius;
        _borderWidth = sameTag.borderWidth;
        _borderColor = sameTag.borderColor;
        _padding = sameTag.padding;
        _font = sameTag.font;
        _fontSize = sameTag.fontSize;
        _enable = sameTag.enable;
        _fixedSize = sameTag.fixedSize;
        _adjustsFont = sameTag.adjustsFont;

    }
    return self;
}


@end
